package com.hy.main.demo.stream;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;

/**
 * @Author yang DongYong
 * @Date 2022/6/22 - 06 - 22 - 21:06
 * @Description: com.hy.main.demo.stream
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private String name;

    private Integer age;

    private String sex;


    public static Collection<Student> getStudent() {
       return  Arrays.asList(new Student("张三", 20, "男"),
                new Student("李四", 25, "男"),
                new Student("李四1", 22, "男"),
                new Student("李四2", 34, "女"),
                new Student("李四3", 56, "女"),
                new Student("李四4", 16, "男"),
                new Student("李四5", 21, "男"),
                new Student("李四6", 12, "男"),
                new Student("王五", 30, "女"));
    }
}
